@import '~antd/es/style/themes/default.less';

.panel {
  width: 300px;

  :global {
    .gant-blockheader {
      height: auto !important;
      min-height: auto;
      padding: 0;
      border-bottom: 1px solid var(--border-color-split);
    }
  }

  .content {
    margin: 0;
    padding: 5px;
    border-bottom: 1px solid var(--border-color-split);
  }

  .header {
    margin: 5px 0px 5px 0px !important;
    padding-left: 5px;
    color: var(--text-color);
    font-weight: bold;
    font-size: 14px !important;
  }

  ul {
    margin-bottom: 0px !important;
    padding-inline-start: unset;

    li {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 3px 5px;
      color: var(--text-color);
      font-size: 12px;
      line-height: 24px;

      .leftContent {
        flex: 1;

        &:hover {
          cursor: pointer;
        }
      }

      .tag {
        // color: var(--primary-color);
        margin-left: 5px;
      }

      .operates {
        display: none;
        color: unset;
        font-size: 12px;

        .operate {
          &:hover {
            color: var(--primary-color);
            cursor: pointer;
          }
        }

        .delete {
          color: var(--error-color);

          &:hover {
            background-color: var(---error-color);
          }
        }
      }

      &:hover {
        color: var(--item-hover-color);
        background: var(--item-hover-bg);
        border-radius: var(--border-radius-base);

        .operates {
          display: block;
        }
      }
    }
  }
}

.dropbutton {
  display: inline-block;
  font-weight: bold;
  font-size: 12px;
  line-height: 20px;
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s;

  &DefaultShow {
    opacity: 1;
  }

  &SplitLine {
    margin-left: 10px;
    padding-left: 10px;
    border-left: 1px solid #edebe9;
  }
}
